package com.myt.matp.gui;

public class UIList extends UIColumn {

    protected UIList(int id, GUI gui) {
	super(id, gui);
    }

    public int getType() {
	return UIWidget.LIST;
    }

    protected int typeContained() {
	return UIWidget.ITEM;
    }

    public UIItem addItem(int id, String label) {
	UIItem item = m_Gui.createUIItem(id);
	item.setText(label);
	add(item);
	return item;
    }
}